﻿using UnityEngine;

namespace TC
{
    public class GetBool_blueprint : TranslateBlueprint
    {
        public override editor.cfg.blueprint.Node OnTranslate(Node node)
        {
            GetBool t = node as GetBool;

            Port p = t.graph.GetConnect(t.keyIn);
            Debug.Assert(p == null, "dont support key from output");

            editor.cfg.blueprint.GetBoolVar re = new editor.cfg.blueprint.GetBoolVar();
            re.id = t.id;
            re.fromCommonArea = false;
            re.varName = t.keyIn.defaultValue;
            re.output = t.valueOut.name;

            return re;
        }
    }
}
